<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");

$_LangPath = "lotto";
$strTemplatePath = __Admintemplate_Path."/Lotto/";
include_once(__Admin_Path."/logincheck.php");
include_once(__Language_Path."/selectlanguage_admin.php");
include_once(__Modules_Path."/Utility.lib.php");
include_once(__Modules_Path."/SQLUtility.lib.php");
include_once(__Modules_Path."/Tool.lib.php");
include_once(__Modules_Path."/BetLimit.lib.php");
include_once(__Modules_Path."/LogRecord.lib.php");
include_once(__Modules_Path."/SelectGambleType.lib.php");
include_once(__Modules_Path."/Lotto.lib.php");
include_once(__Common_Path."/SysParam.inc.php");


$arrPower = CheckUsePower("lotto");
if($arrPower === false)ErrMsgOutputHTML("Error", "", 1);

//By LType different
$arrLimitBT[1] = array(1, 43);
$arrLimitBT[2] = array(51, 93);//array(51, 93);
$arrLimitBT[3] = array(1, 22);
$arrLimitBT[4] = array(1, 35);

switch($_data["op"]){
	case "Add":						//新增表單
		include_once("Add.php");
		break;

	case "Insert":					//新增資料
		$data = $_data["data"];
		include_once("Insert.php");
		break;

	case "Edit":					//編輯表單
		include_once("Edit.php");
		break;

	case "Update":					//更改資料
		$data = $_data["data"];
		include_once("Update.php");
		break;

	case "GLine":					//分盤參數
		include_once("GLine.php");
		break;

	case "GLineUpdate":				//分盤參數更改
		include_once("GLineUpdate.php");
		break;

	case "Limit":					//限額參數
		include_once("Limit.php");
		break;

	case "LimitUpdate":				//限額參數更改
		include_once("LimitUpdate.php");
		break;

	case "Params":					//下注參數
		include_once("Params.php");
		break;

	case "ParamsUpdate":			//下注參數更改
		include_once("ParamsUpdate.php");
		break;

	case "Animals":					//生肖
		include_once("Animals.php");
		break;

	//case "AnimalsUpdate":			//生肖更改
	//	include_once("AnimalsUpdate.php");
	//	break;

	case "ChRate":					//賠率兌換
		include_once("ChRate.php");
		break;

	case "ChRateUpdate":		//賠率兌換更改
		include_once("ChRateUpdate.php");
		break;

	case "TimeItems":					//一日彩期列表
		include_once("TimeItems.php");
		break;

	case "TimeItemsUpdate":		//一日彩期列表更改
		include_once("TimeItemsUpdate.php");
		break;

	case "Search":					//搜尋表單
		include_once("Search.php");
		break;

	case "Lists":						//清單
		$data = $_data["data"];
		$_SESSION["Admin_Info"] -> $_LangPath = "";
		include_once("List.php");
		break;

	default:									//清單
		include_once("List.php");
		break;
}
@mysql_close($$_Conn);
?>